package net.qhzw.vip.qiyu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/***
 * 系统资费配置
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_postage")
public class SysPostage {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 产品名称
     */
    @TableField(value = "code_name")
    private String codeName;

    /**
     * 押金
     */
    @TableField(value = "deposit")
    private BigDecimal deposit;


    /**
     * 租金
     */
    @TableField(value = "rent")
    private BigDecimal rent;


    /**
     * 成本价
     */
    @TableField(value = "cost_price")
    private BigDecimal costPrice;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 类型
     */
    @TableField(value = "type")
    private Byte type;

    /***
     * 产品编码
     */
    @TableField(value = "`code`")
    private String code;

    /**
     * 最后修改时间
     */
    @TableField(value = "last_update_time")
    private Date lastUpdateTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Long createBy;
}